package com.tanhua.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName :  PicUploadController
 * @Author : Tenebrous
 * @Date: 2020/12/9 13:14
 * @Description : 图片上传表现层
 */
@RequestMapping("pic/upload")
@Controller
public class PicUploadController {



    @PostMapping
    @ResponseBody
    public void upload(@RequestParam("fileUpload") MultipartFile multipartFile) {
        System.out.println(1234);
    }

}
